package lean;

public class cha {
    public static void main(String[] args){
      String[]num=new String[5];
      num[0]="赶羊";
      num[1]="吃草";
      String[]num1=new String[5];
      num1[0]="吃肉";
      num1[1]="看羊";

        Dog dg=new Dog();//创建实例对象:类名 对象名=new 类名();
        dg.setName("牧羊犬");
        dg.setLove(num);
        dg.setHealth("健康");
        System.out.println(dg.getName()+"***"+dg.getLove()[0]+"****"+dg.getHealth());
         String cha=dg.eat();
        Dog zA=new Dog();
        zA.setName("藏獒");
        zA.setLove(num1);
        zA.setHealth("健康");
        System.out.println(zA.getName()+"***"+zA.getLove()[1]+"****"+zA.getHealth());
    }


}
